package cn.opopopo.design_pattern_learn.行为型.责任链;

// 1. 抽象处理者（Handler）
abstract class Approver {
    protected Approver nextApprover; // 下一个审批者

    public void setNextApprover(Approver nextApprover) {
        this.nextApprover = nextApprover;
    }

    // 处理请求的抽象方法
    public abstract void processRequest(LeaveRequest request);
}